
<?php defined('IN_NWIDC') or exit('Access Invalid!');?>
<link href="<?php echo SHOP_TEMPLATES_URL;?>/css/index.css" rel="stylesheet" type="text/css">

<?php
  include templet('index','index');
?>

<script type="text/javascript" src="<?php echo SHOP_RESOURCE_SITE_URL;?>/js/home_index.js" charset="utf-8"></script>
<!--[if IE 6]>
<script type="text/javascript" src="<?php echo RESOURCE_SITE_URL;?>/js/ie6.js" charset="utf-8"></script>
<![endif]-->
<style type="text/css">
.category { display: block !important;}
.public-nav-layout .category .menu li{
  /*bottom: 0;*/
  border : 0;
  margin-top: 1px;
}
.home-standard-layout .middle-goods-list dl dd.goods-price{
  width: 160px !important;
}

._ext{
  display: block;
  float: right;
  line-height: 20px;
  background: #f60;
  color: #fff;
  font-size: 12px;
  margin-left: 5px;
  padding: 0 5px;
  border-radius: 2px;
}
</style>

<style>
  #index_top a{
    line-height: 30px;
    text-decoration: none;
    margin-right: 10px;
  }
  #index_top a{
    text-decoration: none;
  }
  #index_top a i{
    font-size: 16px;
    padding-left: 8px;
    padding-right: 8px;
  }
</style>
<?php if(false){?>
<div class='wrapper' id='index_top' style='position:relative;margin-top:20px;z-index:5;'>
  <a href="/" style='position:absolute;'>
    <img src="/static/logo.png" alt="">
  </a>

  <div style='position:absolute;right:0;'>
    <a href="index.php?act=login"><i class='icon-group'></i>登录</a>
    <a href="index.php?act=login&op=register"><i class='icon-user'></i>请注册</a>
  </div>
</div>


<?php
  $config = Model('setting')->getListSetting();
  if($config['open_index_map'] == 1){
?>
<div class="clear"></div>

<script type="text/javascript" src="/static/map/js/lib/raphael-min.js"></script>
<script type="text/javascript" src="/static/map/js/res/chinaMapConfig.js"></script>
<script type="text/javascript" src="/static/map/js/res/worldMapConfig.js"></script>
<script type="text/javascript" src="/static/map/js/map.js"></script>
<div class='wrapper' id='map_index' style='overflow: hidden;position: relative;'>

<a href="index.php?act=search" style='position: absolute;z-index: 500;right:27.5%;top:33%;' id='korea_flag'>
  <img src="/static/images/korea.png" alt="" style='width:20px;'>
</a>

<script>
  $(function(){
    $('#korea_flag').animate({
      top : '40%',
      right : '45%',
    },3000,function(){
      // location.href = 'index.php?act=search';
      // location.href = 'index.php?act=index&op=show_place&id=2';
      // $('#true_index').show();
      // $('#faq').show();
      show_true_index();

    });

    $('#korea_flag').find('img').animate({
      width  : '150px'
    },3000)
  });
</script>

<div id='WorldMap'></div>
</div>

<style>
  #WorldMap{
    position: relative;
  }
  #WorldMap .svggroup,#vmlgroup_WorldMap{
    position: absolute;
    top: 0;
    left: -800px !important;
  }
  .category{
    /*display: none !important;*/
  }

  #true_index{
    display: none;
  }
</style>
<script>




  $('#WorldMap').SVGMap({
    mapName: 'world',
    mapWidth: 2000,
    mapHeight: 800,

    stateColorList : ['BA1B1F'],

    stateData : {
      "KR" : {"stateInitColor" : 0}
    },
    // stateInitColor : 'F7F5F6',
    // stateDisabledColor : '000000',
    clickCallback: function(stateData, obj){
      if(obj.name == 'Republic of Korea'){
        // location.href = 'index.php?act=index&op=hanguo';
        // location.href = 'index.php?act=index&op=show_place&id=2';
      }
    }

  });


</script>
<?php }else{?>
<style>
  .public-top-layout,.header-wrap,.public-nav-layout,#true_index,#faq{
    display: block !important;
  }
  #index_top,#map_index{
    display: none !important;
  }

</style>

<?php }?>


<div id='true_index'>

<!-- HomeFocusLayout Begin-->
<div class="home-focus-layout"> <?php echo $output['web_html']['index_pic'];?>
  <div class="right-sidebar _right" style='display: none;'>
    <style>
      ._right .tle a{
        float: right;
        font-size: 12px;
        display: block;
        line-height: 42px;
        text-decoration: none;
      }

      ._right .tle{
        padding: 0 15px;
        line-height: 42px;
        font-size: 15px;
        border-bottom : 1px solid #ddd;
        border-top : 1px solid #ddd;
        background: rgba(255,255,255,0.8);
      }
      ._right .cnt{
        background: rgba(255,255,255,.8);
          height: 152px;
  padding: 8px 0 0 15px;
      }
      ._right .cnt a{
        display: block;
          height: 27px;
          line-height: 27px;
          width: 210px;
          overflow: hidden;
          text-decoration: none;
      }
      ._right .cnt a:hover{
        color: #f60;
      }

      #joinstore{
          background: url(/shop/templates/default/images/home_bg.png) no-repeat 0 -200px;
          display: block;
          width: 180px;
          height: 60px;
          margin: 20px auto 10px 0;
      }
      .store-join-help{
        margin-left: -15px;
      }

    </style>
    <div class="tle">
      商城快讯
      <a href="" >更多 <code>></code></a>
    </div>
    <div class="cnt">
     <?php if(!empty($output['show_article']['notice']['list']) && is_array($output['show_article']['notice']['list'])) { ?>
          <?php foreach($output['show_article']['notice']['list'] as $val) { ?>
         <a target="_blank" href="<?php echo empty($val['article_url']) ? urlShop('article', 'show',array('article_id'=> $val['article_id'])):$val['article_url'] ;?>" title="<?php echo $val['article_title']; ?>"><?php echo str_cut($val['article_title'],24);?> </a>
          <?php } ?>
          <?php } ?>
    </div>

    <div class="tle">
      招商入驻
    </div>
    <div class="cnt">
      <a href="/shop/index.php?act=show_joinin&op=index" id='joinstore'>
      </a>
      <div class="tabs-panel">  <a href="javascript:;" class="store-join-help"><i class="icon-cog"></i>登录商家管理中心</a> </div>
    </div>
  </div>
</div>

<script>
  ;(function(){
      var is_login = Number('<?php echo $_SESSION[is_login]?>');
      $('.store-join-help').click(function(){
        if(!is_login){
          openLoginWindow(1,'/shop/index.php?act=seller_center');
        }else{
          location.href = '/shop/index.php?act=seller_center'
        }
      });

      if(Number('<?php echo @$_GET[openLogin]?>')){
        openLoginWindow(1,'/shop/index.php?act=seller_center');
      }
  })();

  function show_true_index(){
    $('.public-top-layout,.header-wrap,.public-nav-layout,#true_index,#faq,#ncToolbar').show();
    $('#index_top,#map_index').hide();
  }
</script>

<div style='height: 20px;'></div>

<?php echo $output['web_html']['index'];?>

<div style='height: 40px;clear: both;'></div>

</div>

<style>

</style>
<?php }?>